#include <OsgClassDataSource/StandardManipulatorOsg.h>
#include <iostream>
#include <osg/Group>
#include <NodeInfoContainer.h>
#include <osgGA/StandardManipulator>
StandardManipulatorOsg::StandardManipulatorOsg( QObject *parent /*= 0*/ ) : CameraManipulatorOsg(parent)
{
    m_object = NULL;

    this->refreshInfoContainer();
}


StandardManipulatorOsg::~StandardManipulatorOsg()
{

}

void StandardManipulatorOsg::setVerticalAxisFixed(bool value)
{
    osgGA::StandardManipulator* standarManiPtr = dynamic_cast<osgGA::StandardManipulator*>(m_object.get());
    if(standarManiPtr != NULL)
    {
        standarManiPtr->setVerticalAxisFixed(value);
    }
}

bool StandardManipulatorOsg::getVerticalAxisFixed()
{
    bool boolValue = false;
    osgGA::StandardManipulator* standarManiPtr = dynamic_cast<osgGA::StandardManipulator*>(m_object.get());
    if(standarManiPtr != NULL)
    {
        boolValue = standarManiPtr->getVerticalAxisFixed();
    }
    return boolValue;
}

